#include "stdio.h"
int head(int mid, int max){
	return random() % max > mid/(float)max;//1为正面朝上
		
}

int 
main(){
	int i, j, gameTime, repeatTime;
	
	scanf("%d%d", &gameTime, &repeatTime);
	int re[gameTime + 1];
	
	for(i = 0;i <= gameTime; i++) 
		re[i] = 0; 
	
	for(i = 0;i < repeatTime; i++){
		int count = 0;
		for(j = 0;j < gameTime; j++)
			if(head(1, 6)) count++;
		re[count]++;
	}
	
	for(i = 0; i < gameTime; i++){
		printf("%d  ",i);
		for(j = 0; j < re[i];j += 10)
			printf("*");
		printf("\n");
	}
	return 0;	


}
